#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void  danshengou(int arr[], int len,int *num1,int*num2)
{
	int a = 0;
	for (int i = 0; i < len; i++)
	{
		a ^= arr[i];
	}
	int k = 0;
	for (int i = 0; i < 32; i++)
	{
		if ((a >> i) & 1 == 1)
		{
			k = i;
			break;
		}
	}
	for (int i = 0; i < len; i++)
	{
		if ((arr[i] >> k) & 1 == 1)
		{
			*num1 ^= arr[i];
		}
		else
		{
			*num2 = arr[i];
		}
	}
}

int main1()
{
	int arr[] = { 1,2,3,4,5,1,2,3,4,6 };
	int len = sizeof(arr) / sizeof(arr[0]);
	int num1 = 0;
	int num2 = 0;
	danshengou(arr, len,&num1,&num2);
	printf("%d %d\n", num1, num2);
	return 0;
}

int add(int x,int y)
{
	return x + y;
}
int main2()
{
	typedef int (*p)(int, int);
	p arr = add;
	printf("%p\n", arr);
	int (*arr2)(int, int) = add;
	printf("%p\n", arr2);
	return 0;
}
